import { Menu, MenuItem } from 'electron'

const createContextMenu = (leftView) => {
  const menu = new Menu();
  menu.append(new MenuItem({
    label: '刷新页面',
    click: () => leftView.webContents.reload(),
  }));
  return menu;
};

export default createContextMenu;